package board.service;

import java.sql.SQLException;
import java.text.ParseException;
import java.util.ArrayList;


import board.dao.BoardDAO;
import board.to.GeneratorTO;
import board.to.P1TO;

//게시글에 관한 서비스
public class BoardService {
	private BoardDAO dao;

	public BoardService(BoardDAO dao) {
		super();
		this.dao = dao;
	}

	
	public void insertGenerator(GeneratorTO gto) throws SQLException{
		dao.insertGenerator(gto);
	}
	public int selectp1Status() throws SQLException{
		int a = (Integer)dao.selectp1Status();
		return a;
	}
	
	public GeneratorTO selectGenerator(int result) throws SQLException{
		GeneratorTO gto = dao.selectGenerator(result);
		return gto;
	}
	public int selectgtseqStop() throws SQLException{
		int a = (Integer)dao.selectgtseqStop();
		return a;
	}
	public int selectP1seqStop() throws SQLException{
		int a = (Integer)dao.selectP1seqStop();
		return a;
	}
	public int selectgtseq() throws SQLException{
		int a = (Integer)dao.selectgtseq();
		return a;
	}
	public int selectP1seq() throws SQLException{
		int a = (Integer)dao.selectP1seq();
		return a;
	}
	public int selectP2seq() throws SQLException{
		int a = (Integer)dao.selectP2seq();
		return a;
	}
	public void insertP1(P1TO p1to) throws SQLException{
		dao.insertP1(p1to);
	}
	public P1TO selectP1(int result) throws SQLException{
		P1TO p1to = dao.selectP1(result);
		return p1to;
	}
	public int deleteGenerator(int result) throws SQLException{
		return dao.deleteGenerator(result);
	}
	public int deleteP1(int result) throws SQLException{
		return dao.deleteP1(result);
	}
	public int updatep1Status0() throws SQLException{
		return dao.updatep1Status0();
	}
	public int updatep1Status1() throws SQLException{
		return dao.updatep1Status1();
	}
	public int updategtseq() throws SQLException{
		return dao.updategtseq();
	}
	public int updategtseqStop() throws SQLException{
		return dao.updategtseqStop();
	}
	public int updategtseqStopYes() throws SQLException{
		return dao.updategtseqStopYes();
	}
	public int updategtseqStopNo() throws SQLException{
		return dao.updategtseqStopNo();
	}
	public int updateP1seqStopYes() throws SQLException{
		return dao.updateP1seqStopYes();
	}
	public int updateP1seqStopNo() throws SQLException{
		return dao.updateP1seqStopNo();
	}
	public int updateP1seq() throws SQLException{
		return dao.updateP1seq();
	}
	public int updateP1seqStop() throws SQLException{
		return dao.updateP1seqStop();
	}
	public int updateP2seq() throws SQLException{
		return dao.updateP2seq();
	}
}
